package com.teatang.tadmin.util;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

public class PrintUtils {
    public static void printJson(Object obj) {
        String s = JSON.toJSONString(
                obj,
                SerializerFeature.PrettyFormat,
                SerializerFeature.WriteMapNullValue,
                SerializerFeature.WriteDateUseDateFormat
        );
        System.out.println(s);
    }
}
